// -----------------------------------------------
// Author:     code34 nicolas_boiteux@yahoo.fr
// Edited by:  Neumatic
// Warcontext: Export players weapons & ammo into clipboard
// -----------------------------------------------

private ["_weapons","_magazines","_text","_newtext"];

_weapons = weapons player;
_magazines = magazines player;

_text = format ["player name: %1;", name player];

{
	_newtext = format ['player addWeapon "%1";', _x];
	_text = _text + _newtext;
} foreach _weapons;

{
	_newtext = format ['player addMagazine "%1";', _x];
	_text = _text + _newtext;
} foreach _magazines;

_text = _text + format ["player selectWeapon '%1';", primaryWeapon player];

copyToClipboard format ["%1",_text];
hintSilent "Weapons were exported in your clipboard";